﻿using FluentValidation;

namespace ED.Model
{
    public class UserInfoReq
    {
        public string UserName { get; set; }
        public string Password { get; set; }
    }

    public class UserInfoValidate : AbstractValidator<UserInfoReq>
    {
        public UserInfoValidate()
        {
            RuleFor(model => model.UserName).NotNull().NotEmpty().WithMessage("用户名不允许为空");
            RuleFor(model => model.Password).NotNull().NotEmpty().WithMessage("密码不允许为空");
        }
    }
}
